﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ThemesHtmlContent.ascx.cs" Inherits="Dune.Web.Controls.Ajax.ThemesHtmlContent" %>
<asp:HyperLink runat="server" id="btnAdd" Text="Добавить тему"/><br /><br />
   <b><asp:Label runat="server" id="lblParentTheme" /></b><br />
    <asp:GridView runat="server" id="gridForum" AllowPaging="true" AllowSorting="true" PageSize="10" AutoGenerateColumns="false">
    <Columns> 
<%--        <asp:TemplateField ItemStyle-Width="220">
            <ItemTemplate>
                <%# DataBinder.Eval(Container.DataItem, "CreatedBy.Name")%></a><br />
                <asp:Image id="imgAvatar" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "CreatedBy.ImageSrc")%>' /><br />
                <%# DataBinder.Eval(Container.DataItem, "CreationTime")%><br />
                <asp:HyperLink id="hlEdit" runat="server" Text="Редактировать"/><br />
                <asp:HyperLink id="hlDelete" runat="server" Text="Удалить"/>
            </ItemTemplate>
        </asp:TemplateField>--%>
        <asp:TemplateField>
            <ItemTemplate>
                <a href="Themes.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id")%>"><%# DataBinder.Eval(Container.DataItem, "Name")%></a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField>
            <ItemTemplate>
                <%# DataBinder.Eval(Container.DataItem, "CreateDate")%></a>
        </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    </asp:GridView>      